package com.fuluwa.domain.category.service.dto;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fuluwa.domain.category.model.Attribute;
import com.fuluwa.domain.category.model.Category;
import com.fuluwa.domain.category.model.Option;

public class CategoryDTO {

	private Category category;
	private List<Attribute> attrs = new ArrayList<Attribute>();
	private Map<Long, List<Option>> attrOptions = new HashMap<Long, List<Option>>();

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public List<Attribute> getAttrs() {
		return attrs;
	}

	public void setAttrs(List<Attribute> attrs) {
		this.attrs = attrs;
	}

	public Map<Long, List<Option>> getAttrOptions() {
		return attrOptions;
	}

	public void setAttrOptions(Map<Long, List<Option>> attrOptions) {
		this.attrOptions = attrOptions;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
